// 全局样式变量
$primary-color: #409eff;
$success-color: #67c23a;
$warning-color: #e6a23c;
$danger-color: #f56c6c;
$info-color: #909399;
$text-color: #303133;
$border-color: #dcdfe6;
$bg-color: #f5f7fa;

// 重置样式
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  background-color: $bg-color;
  color: $text-color;
}

// 登录注册页面容器
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;

  .auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;

    &:hover {
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .auth-header {
      text-align: center;
      margin-bottom: 30px;

      h2 {
        color: $text-color;
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 8px;
      }

      p {
        color: $info-color;
        font-size: 14px;
      }
    }

    .auth-form {
      .form-item {
        margin-bottom: 20px;

        .el-input,
        .el-select {
          width: 100%;
        }
      }

      .remember-forgot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;

        .remember-me {
          display: flex;
          align-items: center;
          gap: 8px;
        }

        .forgot-password {
          color: $primary-color;
          text-decoration: none;
          font-size: 14px;
          cursor: pointer;

          &:hover {
            text-decoration: underline;
          }
        }
      }

      .submit-btn {
        width: 100%;
        margin-bottom: 20px;
      }

      .auth-switch {
        text-align: center;
        color: $info-color;
        font-size: 14px;

        .switch-link {
          color: $primary-color;
          text-decoration: none;
          cursor: pointer;
          margin-left: 8px;

          &:hover {
            text-decoration: underline;
          }
        }
      }
    }
  }
}

// 响应式设计
@media (max-width: 480px) {
  .auth-container {
    padding: 10px;

    .auth-card {
      padding: 30px 20px;
    }
  }
}

// 加载动画
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

// 消息提示样式
.message-box {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 300px;
}
